//
//  BookBCell.m
//  Unicorn
//
//  Created by xalo on 16/4/30.
//  Copyright © 2016年 bhj_jun. All rights reserved.
//

#import "BookBCell.h"

@implementation BookBCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setCellWithModel:(BookBModel *)object img:(NSString *)imageStr
{
    if ([object class] == [BookBModel class]) {
        BookBModel * model = object;
        self.titleLabel.text = [NSString stringWithFormat:@"%@",model.title];
        self.imgView.image = [UIImage imageNamed:imageStr] ;
        self.imageView.alpha = 0.5;
    }
    
}

@end
